Matthias Clasen [Mon, 18 Jan 2021 14:40:02 +0000 (14:40 +0000)]
Merge branch 'doap-update' into 'master'
Update the gtk.doap file
See merge request GNOME/gtk!3088
Matthias Clasen [Mon, 18 Jan 2021 14:11:11 +0000 (09:11 -0500)]
Update the gtk.doap file
Add relevant people as maintainers.
Florentina Mușat [Mon, 18 Jan 2021 13:06:18 +0000 (13:06 +0000)]
Update Romanian translation
Chun-wei Fan [Mon, 18 Jan 2021 10:42:37 +0000 (10:42 +0000)]
Merge branch 'win32-remove-layered-windows' into 'master'
GDK/Win32: Remove layered windows usage
See merge request GNOME/gtk!2782
Chun-wei Fan [Thu, 5 Nov 2020 08:24:40 +0000 (16:24 +0800)]
GDK/Win32: Remove layered windows usage
In GTK4, we are now defaulting to the OpenGL renderer with the Cairo renderer
only used as a fallback, so there is no point keeping the code paths that use
layered windows as layered windows do not work well with OpenGL nor Vulkan.
Matthias Clasen [Sun, 17 Jan 2021 17:51:15 +0000 (17:51 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
Closes #3437
See merge request GNOME/gtk!3087
Matthias Clasen [Sun, 17 Jan 2021 16:39:36 +0000 (11:39 -0500)]
aboutdialog: Fix initial focus
When GtkAboutDialog was changed to derive from
GtkWindow, it lost the initial focus handling that
GtkDialog has. Reinstate some of it.
Fixes: #3437
Matthias Clasen [Sun, 17 Jan 2021 15:55:53 +0000 (10:55 -0500)]
inspector: Avoid a critical
Avoid a critical when closing the inspector with the
recorder page open.
Matthias Clasen [Sun, 17 Jan 2021 14:20:13 +0000 (14:20 +0000)]
Merge branch 'wip/baedert/for-master' into 'master'
Wip/baedert/for master
Closes #3593
See merge request GNOME/gtk!3086
Fabio Tomat [Sun, 17 Jan 2021 13:11:25 +0000 (13:11 +0000)]
Update Friulian translation
Piotr Drąg [Sun, 17 Jan 2021 11:38:17 +0000 (12:38 +0100)]
Update Polish translation
Timm Bäder [Sun, 17 Jan 2021 07:12:14 +0000 (08:12 +0100)]
widget: Fix gtk_widget_class_add_binding() argument name
Timm Bäder [Sun, 17 Jan 2021 07:11:42 +0000 (08:11 +0100)]
Add nullable annotations to GtkShortcutFunc
Fixes #3593
Matthias Clasen [Sun, 17 Jan 2021 05:23:22 +0000 (05:23 +0000)]
Merge branch 'surface-scale' into 'master'
Surface scale
Closes #3578
See merge request GNOME/gtk!3085
Timm Bäder [Mon, 11 Jan 2021 20:49:30 +0000 (21:49 +0100)]
gl renderer: Use rect_contains_rect() copy
And this way the contains_rect() inside
rounded_inner_rect_contains_rect() goes from 3.3% to 0.79% in the
fishbowl when rendering the levelbars.
Timm Bäder [Mon, 11 Jan 2021 19:04:15 +0000 (20:04 +0100)]
label: Remove unneeded NULL guards
The pointers passed to GtkWidgetClass::measure cannot be NULL
Timm Bäder [Mon, 11 Jan 2021 18:53:25 +0000 (19:53 +0100)]
label: Refactor get_layout_location
Make this function shorter, the parameters non-nullable and the simple
cases more explicit.
Timm Bäder [Sun, 10 Jan 2021 18:51:27 +0000 (19:51 +0100)]
gl renderer: Don't reset offset when drawing offscreen
Timm Bäder [Sun, 10 Jan 2021 18:21:12 +0000 (19:21 +0100)]
gl renderer: Properly y-flip non-offscreen children of rounded clips
Timm Bäder [Sun, 10 Jan 2021 09:12:08 +0000 (10:12 +0100)]
label: Fix a potential memory leak
This only happens in error cases so not very interesting. Anyway, try to
make scan-build happy.
Timm Bäder [Sat, 9 Jan 2021 14:58:56 +0000 (15:58 +0100)]
builderparser: Save finalizers in a GPtrArray
We get up to 370 of these when starting the widget-factory.
Timm Bäder [Sat, 9 Jan 2021 14:16:13 +0000 (15:16 +0100)]
widget: Shorten get_halign() a bit
Timm Bäder [Sat, 9 Jan 2021 14:07:21 +0000 (15:07 +0100)]
accessible: Fix memory leak if context is unset
Unref the acessible values
Timm Bäder [Wed, 6 Jan 2021 18:23:02 +0000 (19:23 +0100)]
builder: Use a GPtrArray when parsing signals
Timm Bäder [Wed, 6 Jan 2021 18:07:44 +0000 (19:07 +0100)]
builderparser: Keep properties in a GPtrArray
Timm Bäder [Wed, 6 Jan 2021 16:54:31 +0000 (17:54 +0100)]
builderparser: Only allocate subparser stack when needed
Out of the 3.3k possibly_finish_subparser calls when opening the
widget-factory, only 300 need one.
Matthias Clasen [Sat, 16 Jan 2021 20:36:44 +0000 (20:36 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
docs: Add details
See merge request GNOME/gtk!3084
Matthias Clasen [Sat, 16 Jan 2021 20:21:36 +0000 (15:21 -0500)]
x11: Notify on surface scale changes
Emit property notification when the surface scale
changes.
Matthias Clasen [Sat, 16 Jan 2021 20:17:08 +0000 (15:17 -0500)]
wayland: Notify on surface changes
When the width, height or scale of a surface changes,
emit property change notification.
Matthias Clasen [Sat, 16 Jan 2021 20:17:57 +0000 (15:17 -0500)]
native: Listen for scale changes
Connect to change notification for the surface
scale-factor property, and update the widgets
when it changes.
Fixes: #3578
Matthias Clasen [Sat, 16 Jan 2021 20:16:36 +0000 (15:16 -0500)]
surface: Add a scale-factor property
This will allow us to notify when the scale changes.
Matthias Clasen [Sat, 16 Jan 2021 19:45:20 +0000 (14:45 -0500)]
docs: Add details
Explain the difference between GtkPicture and GtkImage,
and when you might want to use which.
Yuri Chornoivan [Sat, 16 Jan 2021 18:44:30 +0000 (18:44 +0000)]
Update Ukrainian translation
Matthias Clasen [Sat, 16 Jan 2021 18:37:58 +0000 (18:37 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
inspector: Add a legend for the layout overlay
See merge request GNOME/gtk!3083
Matthias Clasen [Sat, 16 Jan 2021 17:52:06 +0000 (12:52 -0500)]
docs: Remove a reference to configure events
Those don't exist anymore.
Matthias Clasen [Sat, 16 Jan 2021 17:38:24 +0000 (12:38 -0500)]
inspector: Add a legend for the layout overlay
Colors are more useful if you know what they represent.
Matthias Clasen [Sat, 16 Jan 2021 03:55:22 +0000 (03:55 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
overlaylayout: Set the child type in the class
See merge request GNOME/gtk!3082
Matthias Clasen [Sat, 16 Jan 2021 03:35:11 +0000 (22:35 -0500)]
overlaylayout: Set the child type in the class
We don't need to override create_layout_child here,
and setting the child type has the advantage that
the layout properties are showing up in the inspector.
Matthias Clasen [Sat, 16 Jan 2021 00:19:41 +0000 (00:19 +0000)]
Merge branch 'rtl-margins' into 'master'
Flip margin-start and -end in RTL
Closes #3583
See merge request GNOME/gtk!3081
Matthias Clasen [Fri, 15 Jan 2021 23:42:20 +0000 (18:42 -0500)]
Add a reftest for box flipping
Test that a horizontal box changes the order of its
children in RTL, and that widget margins flip start
and end.
This tests the fix in
d89ff7181941d202d2.
Matthias Clasen [Fri, 15 Jan 2021 19:56:21 +0000 (14:56 -0500)]
Flip margin-start and -end in RTL
We lost this at some point, but the widget margins
are still meant to be relative to the text direction.
Fixes: #3583
Matthias Clasen [Fri, 15 Jan 2021 15:56:37 +0000 (15:56 +0000)]
Merge branch 'macos-ci-cairo' into 'master'
Revert "Fix the cairo build on OS X"
See merge request GNOME/gtk!3080
Matthias Clasen [Fri, 15 Jan 2021 14:06:46 +0000 (09:06 -0500)]
Revert "Fix the cairo build on OS X"
This reverts commit
710ef00dfea4853d99e1c7f7201733d81d2b846d.
The cairo change has been merged.
Marek Černocký [Fri, 15 Jan 2021 13:10:17 +0000 (14:10 +0100)]
Updated Czech translation
Matthias Clasen [Fri, 15 Jan 2021 05:48:00 +0000 (05:48 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!3078
Matthias Clasen [Fri, 15 Jan 2021 03:55:52 +0000 (22:55 -0500)]
Make HighContrastInverse a dark variant
Make HighContrastInverse available as the dark variant of HighContrast,
in addition to being a standalone theme. This regularizes our theme
variants, and doesn't hurt.
Matthias Clasen [Fri, 15 Jan 2021 03:41:43 +0000 (22:41 -0500)]
Make Adwaita-dark available as a theme
This makes Adwaita-dark available as a standalone
theme.
Matthias Clasen [Thu, 14 Jan 2021 18:33:45 +0000 (18:33 +0000)]
Merge branch 'wip/carlosg/mark-valid-portal-settings' into 'master'
gdk/wayland: Mark matched settings from the portal as valid
See merge request GNOME/gtk!3076
Carlos Garnacho [Thu, 14 Jan 2021 14:47:36 +0000 (15:47 +0100)]
gdk/wayland: Mark matched settings from the portal as valid
Commit
e6209de9625 added some checks on TranslationEntry.valid in
order to figure out whether using the new font settings or the
old g-s-d ones. However that's only set in the non-sandboxed case.
This makes sandboxed applications fallback to the old (and also
non-existing with modern g-s-d) settings, possibly resulting in
ugly defaults being picked.
Fix this by also marking TranslationEntry elements as valid when
using the settings portal, precisely those entries that we are able
to read and match with our own table.
Matthias Clasen [Thu, 14 Jan 2021 13:38:18 +0000 (13:38 +0000)]
Merge branch 'matthiasc/for-master' into 'master'
Matthiasc/for master
See merge request GNOME/gtk!3075
Matthias Clasen [Thu, 14 Jan 2021 13:13:34 +0000 (08:13 -0500)]
docs: Fix a heading gotcha
One of the many migration guide sections was too
prominent.
Matthias Clasen [Thu, 14 Jan 2021 12:52:36 +0000 (07:52 -0500)]
doc: Clarify some migration hints
Don't mention GdkSurface::layout as replacement for
GtkWindow::configure-event. Instead, explain how to
save window state.
Daniel Mustieles [Thu, 14 Jan 2021 09:35:43 +0000 (10:35 +0100)]
Updated Spanish translation
Daniel Mustieles [Thu, 14 Jan 2021 09:35:35 +0000 (10:35 +0100)]
Updated Spanish translation
Christian Hergert [Wed, 13 Jan 2021 16:13:14 +0000 (16:13 +0000)]
Merge branch 'nacho/macos-stylus' into 'master'
Support stylus devices on macos
See merge request GNOME/gtk!3058
Anders Jonsson [Tue, 12 Jan 2021 21:55:52 +0000 (21:55 +0000)]
Update Swedish translation
Anders Jonsson [Tue, 12 Jan 2021 21:51:53 +0000 (21:51 +0000)]
Update Swedish translation
Emmanuele Bassi [Tue, 12 Jan 2021 16:50:31 +0000 (16:50 +0000)]
Merge branch 'ebassi/aspect-frame-doc' into 'master'
Ebassi/aspect frame doc
See merge request GNOME/gtk!3073
Matthias Clasen [Tue, 12 Jan 2021 15:50:41 +0000 (10:50 -0500)]
Remove a misleading comment
Matthias Clasen [Tue, 12 Jan 2021 14:04:51 +0000 (14:04 +0000)]
Merge branch 'dist-css' into 'master'
dist: Add a dist script to generate css
See merge request GNOME/gtk!3074
Matthias Clasen [Tue, 12 Jan 2021 13:18:47 +0000 (08:18 -0500)]
dist: Add a dist script to generate css
When I added the sassc option, I failed to ensure that
the theme css is included in the tarballs. This is required
to make tarball builds with -Dsassc=disabled work.
Emmanuele Bassi [Tue, 12 Jan 2021 12:37:31 +0000 (12:37 +0000)]
Merge branch 'ebassi/atspi-path-sanitize' into 'master'
a11y: Fix leak
See merge request GNOME/gtk!3072
Emmanuele Bassi [Tue, 12 Jan 2021 12:28:18 +0000 (12:28 +0000)]
Document limits of gtk_aspect_frame_get_ratio()
The GtkAspectFrame:ratio getter will return the value set, not the
actual ratio computed in case GtkAspectFrame:obey-child is TRUE.
Emmanuele Bassi [Tue, 12 Jan 2021 12:28:00 +0000 (12:28 +0000)]
Document GtkAspectFrame properties
Emmanuele Bassi [Tue, 12 Jan 2021 12:23:14 +0000 (12:23 +0000)]
docs: GtkAspectFrame is not a GtkFrame any more
Emmanuele Bassi [Tue, 12 Jan 2021 12:00:51 +0000 (12:00 +0000)]
a11y: Fix leak
Introduced by me in commit
03b60a2d5e40da1b137117aba05a2c818edd09b3.
Emmanuele Bassi [Tue, 12 Jan 2021 11:36:52 +0000 (11:36 +0000)]
Merge branch 'ebassi/atspi-path-sanitize' into 'master'
a11y: Sanitize the AT-SPI object path further
See merge request GNOME/gtk!3071
Emmanuele Bassi [Tue, 12 Jan 2021 11:15:28 +0000 (11:15 +0000)]
a11y: Sanitize the AT-SPI object path further
When falling back to g_get_prgname(), we need to take into account that
the program name may be the full argv[0] path, which will end up messing
the DBus object path.
Benjamin Otte [Mon, 11 Jan 2021 23:13:21 +0000 (23:13 +0000)]
Merge branch 'about-dialog-icon-size' into 'master'
About dialog icon size
See merge request GNOME/gtk!3070
Matthias Clasen [Mon, 11 Jan 2021 21:37:55 +0000 (16:37 -0500)]
iconhelper: Recreate the texture when needed
When the icon size changes, we want to reload themed
icons.
This was showing up as the GtkImage in about dialogs
getting a big size with the same small icon upon
changing -gtk-icon-size in the inspector.
Matthias Clasen [Mon, 11 Jan 2021 21:43:19 +0000 (16:43 -0500)]
Adwaita: Make about dialog icons big
Use 128 as the icon size for the image widget
in about dialogs.
Matthias Clasen [Mon, 11 Jan 2021 22:49:08 +0000 (17:49 -0500)]
aboutdialog: Set icon-size for the logo
Make it explicit that we want large icons here.
Matthias Clasen [Mon, 11 Jan 2021 21:48:06 +0000 (16:48 -0500)]
aboutdialog: Set a style class
Add the .aboutdialog style class to toplevel
widget of about dialogs, similar to what we
do for e.g. GtkAssistant.
Matthias Clasen [Mon, 11 Jan 2021 19:38:18 +0000 (14:38 -0500)]
about dialog: Remove manual icon sizing
We have icon theme code to do that for us.
Matthias Clasen [Mon, 11 Jan 2021 22:04:52 +0000 (22:04 +0000)]
Merge branch 'wip/kalev/gcc-11' into 'master'
Avoid diagnostics for gcc-11 false positive out of bounds accesses
See merge request GNOME/gtk!3064
Emmanuele Bassi [Mon, 11 Jan 2021 16:44:00 +0000 (16:44 +0000)]
Merge branch 'wip/fl/glrenderer-fixes' into 'master'
gl renderer: print fragment shader info
See merge request GNOME/gtk!3069
Kalev Lember [Sun, 10 Jan 2021 08:35:40 +0000 (09:35 +0100)]
Avoid diagnostics for gcc-11 false positive out of bounds accesses
This is a patch by Jeff Law <law@redhat.com> done in downstream Fedora
to fix the build with gcc 11.
Jakub Steiner [Mon, 11 Jan 2021 16:09:08 +0000 (16:09 +0000)]
Merge branch 'wip/jimmac/adjust-for-contemporary-trends' into 'master'
Wip/jimmac/adjust for contemporary trends
Closes #3568 and #3560
See merge request GNOME/gtk!3060
Fabio Lagalla [Mon, 11 Jan 2021 16:06:03 +0000 (17:06 +0100)]
gl renderer: print fragment shader info
It was logged twice the vertex shader info, instead
Jakub Steiner [Mon, 11 Jan 2021 15:18:47 +0000 (16:18 +0100)]
Adwaita: update image assets
- reflect button styling
- ignore backdrop for non buttons
Matthias Clasen [Mon, 11 Jan 2021 15:07:40 +0000 (15:07 +0000)]
Merge branch 'otte/for-master2' into 'master'
Remove guarantees we do not intend to hold
See merge request GNOME/gtk!3066
Jakub Steiner [Mon, 11 Jan 2021 15:00:32 +0000 (16:00 +0100)]
Adwaita: scales border
- remove -alt specialcasing for a straight forward border like
everything else and avoid broken :dark and HC
Matthias Clasen [Mon, 11 Jan 2021 14:44:27 +0000 (14:44 +0000)]
Merge branch 'fix-tablet-4' into 'master'
Wayland: ignore touch/tablet events on destroyed surfaces [GTK4]
See merge request GNOME/gtk!3065
Jakub Steiner [Mon, 11 Jan 2021 14:37:58 +0000 (14:37 +0000)]
Merge branch 'wip/jimmac/undercorated-active' into 'master'
Adwaita: less dramatic :active for undecorated buttons
Closes #3575
See merge request GNOME/gtk!3068
Jakub Steiner [Mon, 11 Jan 2021 14:00:38 +0000 (15:00 +0100)]
Adwaita: less dramatic :active for undecorated buttons
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3575
Jakub Steiner [Mon, 11 Jan 2021 13:08:57 +0000 (14:08 +0100)]
Adwaita: fix button border logic
- tint borders dark on non default / blue / red buttons
- just use plain $borders_color otherwise
- fixes HC/HCi
- ditch -alt buttons
Jakub Steiner [Fri, 8 Jan 2021 21:34:28 +0000 (22:34 +0100)]
Adwaita: flatter, lighter buttons
- lighten up for contrast, less of an oldschool gradient
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3568
Jakub Steiner [Fri, 8 Jan 2021 21:25:33 +0000 (22:25 +0100)]
Adwaita: round progress and levelbars
Jakub Steiner [Fri, 8 Jan 2021 21:12:41 +0000 (22:12 +0100)]
Adwaita: :checked:active and checked:hover states
Fixes https://gitlab.gnome.org/GNOME/gtk/-/issues/3560
Jakub Steiner [Fri, 8 Jan 2021 20:56:14 +0000 (21:56 +0100)]
Adwaita: flat scales, progressbars and level bars
Jakub Steiner [Fri, 8 Jan 2021 20:03:30 +0000 (21:03 +0100)]
Adwaita: remove edge highlights
- flat is the name of the game
- kids scream make it flat
- simplify mixins
Carlos Garnacho [Mon, 11 Jan 2021 12:07:01 +0000 (12:07 +0000)]
Merge branch 'avoid-pointer-reset-gtk4' into 'master'
wayland: avoid set_cursor() when unchanged or invisible
Closes #3350
See merge request GNOME/gtk!3062
Matthias Clasen [Mon, 11 Jan 2021 11:56:42 +0000 (11:56 +0000)]
Merge branch 'surface.compute.win32' into 'master'
Fix surface and geometry computation for Windows (Win32)
Closes #3480
See merge request GNOME/gtk!3067
Ignacio Casal Quinteiro [Thu, 7 Jan 2021 12:40:12 +0000 (13:40 +0100)]
Support stylus devices on macos
Chun-wei Fan [Thu, 31 Dec 2020 08:36:41 +0000 (16:36 +0800)]
gdk/win32: Fix window display and resizing
Have an implementation of ->request_layout() and ->compute_size() for the Win32
surface backend so that we can properly display and move and resize the
windows, as we request from the Win32 APIs.
Hxndling Aerosnap properly is mostly done except for snap_up(), which needs to
to be looked at later.
Chun-wei Fan [Thu, 31 Dec 2020 09:27:40 +0000 (17:27 +0800)]
gdk/win32: Rename 'margins' to 'shadow'
This improves consistency for the code.
Chun-wei Fan [Fri, 11 Dec 2020 02:37:43 +0000 (10:37 +0800)]
gdkwin32-surface.c: Fix return type
gdk_win32_toplevel_present() should now be returning nothing, not a gboolean.
Chun-wei Fan [Fri, 11 Dec 2020 02:29:28 +0000 (10:29 +0800)]
gdksurface-win32.c: Decouple mapped state from surface creation
In line with what is done with the Wayland backend, enable the mapped state
independently as needed from the toplevel surface presentation, and also enable
the mapped state if necessary when presenting the popup surface.
Benjamin Otte [Sun, 10 Jan 2021 21:37:03 +0000 (21:37 +0000)]
Remove guarantees we do not intend to hold
The fact that we are using gdk-pixbuf for loading files currrently does not mean we will use it going forward.
Also, "anything gdk-pixbuf can load" does not mean anything, because what gdk-pixbuf can load is a compile-time option.
As new_from_resource() will assert() if it cannot load a resource, we must be very sure that people do not use anything but PNG and JPEG for resources and the docs were not clear on that.
Asier Sarasua Garmendia [Sun, 10 Jan 2021 18:00:26 +0000 (18:00 +0000)]
Update Basque translation